extends MarginContainer

@onready var icon : TextureRect = $Icon
@onready var number = $Number

var item : Item = null

func update_display(new_item : Item):
	item = new_item
	icon.texture = new_item.icon
	number.text = str(new_item.number)
	if new_item.number == 1:
		number.hide()
	else :
		number.show()
